﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using ProjControleDAL;
using ProjControleModelos;
namespace ProjControleBLL
{
   public class Itens_CompraBLL
    {
        Itens_CompraDAL objDAL;
        public Itens_CompraBLL()
        {
        }
        #region Métodos
        public void inserir(Itens_Compra objIC)
        {
            try
            {
                objDAL = new Itens_CompraDAL();
                objDAL.inserir(objIC);
            }
            catch (Exception ex)
            {

                throw ex;
            }
            objDAL = null;
        }
        public void excluirTodos(Compra objC)
        {
            try
            {
                objDAL = new Itens_CompraDAL();
                objDAL.excluirTodos(objC);
            }
            catch (Exception ex)
            {

                throw ex;
            }
            objDAL = null;
        }
        public DataTable localizar(Compra objC)
        {
            DataTable tab;
            try
            {
                objDAL = new Itens_CompraDAL();
                tab = objDAL.localizar(objC);
            }
            catch (Exception ex)
            {

                throw ex;
            }
            objDAL = null;
            return tab;
        }
        #endregion
    }
}
